<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderSid extends Migrator
{
    public function up()
    {
        $this->table('coupon_order_sid')
            ->addColumn('user_share_openid', 'string', ['limit' => 200, 'default' => '', 'comment' => 'mobile_user 表中的openid，分享者openid'])
            ->update();
    }

    public function down()
    {
        $this->table('coupon_order_sid')->removeColumn('user_share_openid');
    }
}
